import BaseModel from "../base/model/BaseModel";
import { isNull } from "../tools/Define";


export default class TipModel extends BaseModel {


    private content:string;

    private func:(result:number)=>void;

    private left:string;

    private right:string

    init(content:string,func:(result:number)=>void,right?:string,left?:string){
        this.content = content;
        this.func = func;
        this.left = left;
        // right = right || PlaneManager.getInstance().getLocalString('ui.conform')
        this.right = right;
        
    }

    isSingle(){
        return isNull(this.left)
    }

    getLeft(){
        return this.left;
    }

    getRight(){
        return this.right;
    }

    getContent(){
        return this.content;
    }

    getFunc(){
        return this.func;
    }

    
}
